package com.atguigu.day12.comparator06.dog;

import org.junit.Test;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/13 16:07
 * @注释
 */
public class Dog1 {
    Dog dog = new Dog("旺财", 2,5);
    Dog dog1 = new Dog("翠花", 3,10);
    /*@Test
    public void test(){
        int a = dog.compareTo(dog1);
        System.out.println("a = " + a);

    }*/
    @Test
    public void test(){
        DogTest d = new DogTest();
        int compare = d.compare(dog, dog1);
        System.out.println(compare);

    }
}
